package com.itheima.day04;

public class DemoArray {
    public static void main(String[] args) {
        /*int[] arr = new int[3];
        ;
        arr[1] = 21;
        arr[2] = 31;
        System.out.println(arr[0]);
        System.out.println(arr[1]);
        System.out.println(arr[2]);

        int[] arr2 = arr;
        arr2[0] = 33;
        System.out.println(arr2[0]);
        System.out.println(arr2[1]);
        System.out.println(arr2[2]);*/

        int[] arr = {11, 22, 33};
        for (int a = 0; a < arr.length; a++) {
            System.out.println(arr[a]);
        }

    }
}
